package com.service.firstapp.controller;

import org.apache.servicecomb.core.Invocation;
import org.apache.servicecomb.core.handler.impl.AbstractHandler;
import org.apache.servicecomb.swagger.invocation.AsyncResponse;

/**
 * Created by wjh on 2018/3/14.
 */
public class MyHandler extends AbstractHandler {
    @Override
    public void handle(Invocation invocation, AsyncResponse asyncResp) throws Exception {
        // code before
        invocation.next(response -> {
            // code after
            System.out.println("resp："+response);
            asyncResp.handle(response);
        });
    }
}
